<template>
  <starTwoView :title="lang.title" :left="8" :right="16">
    <div slot="left" style="background: pink;height:2000px;">abc</div>
    <!-- <carbonProduct slot="right"></carbonProduct> -->
    <!-- <breakProduct slot="right"></breakProduct> -->
    <!-- <changeRadio slot="right"></changeRadio> -->
    <!-- <revertOriginal slot="right"></revertOriginal> -->
    <!-- <carbonFurnace slot="right"></carbonFurnace> -->
    <!-- <carbonOriginal slot="right"></carbonOriginal> -->
    <moFurnace slot="right"></moFurnace>
    <!-- <ballMill slot="right"></ballMill> -->
    <!-- <wBatchNotice slot="right"></wBatchNotice> -->
    <!-- <cBatchNotice slot="right"></cBatchNotice> -->
    <!-- <productDispatch slot="right"></productDispatch> -->
  </starTwoView>
</template>

<script>
    import carbonProduct from '../sheet/carbonProduct'
    import breakProduct from '../sheet/breakProduct'
    import ballMill from '../sheet/ballMill'
    import changeRadio from '../sheet/changeRadio'
    import carbonFurnace from '../sheet/carbonFurnace'
    import carbonOriginal from '../sheet/carbonOriginal'
    import productDispatch from '../sheet/productDispatch'
    import wBatchNotice from '../sheet/wBatchNotice'
    import cBatchNotice from '../sheet/cBatchNotice'
    import moFurnace from '../sheet/moFurnace'
    import revertOriginal from '../sheet/revertOriginal'
    export default {
        name: 'index',
        components: { carbonProduct, breakProduct, ballMill, changeRadio, carbonFurnace, carbonOriginal, productDispatch, wBatchNotice, cBatchNotice, moFurnace, revertOriginal },
        data () {
            return {
                onlyRead: false,
                config: {
                    title: {
                        title: '还 原 原 始 记 录',
                        titleStyle: {},
                        outlineStyle: { marginBottom: '20px' }
                    },
                    section: {
                        start: {
                            labelWidth: 70,
                            labelPosition: 'right',
                            cols: 4,
                            columns: [
                                { title: '炉号:', key: 'FurnaceNo', config: { type: 'text' } },
                                { title: '时间:', key: 'date', config: { type: 'date' } },
                                { title: '班组:', key: 'shift', config: { type: 'select', options: [{ label: 1, value: 1 }, { label: 2, value: 2 }, { label: 1, value: 3 } ] } },
                                { title: '表单号:', key: 'formNo', config: { type: 'text' } }
                            ],
                            rules: {}
                        },
                        feed: {
                            labelWidth: 70,
                            labelPosition: 'right',
                            cols: 3,
                            columns: [
                                { title: '名称:', key: 'name', config: { type: 'text' } },
                                { title: '批次:', key: 'batchNo', config: { type: 'text' } },
                                { title: '重量:', key: 'weight', config: { type: 'number' } }
                            ],
                            rules: {}
                        },
                        product: {
                            labelWidth: 70,
                            labelPosition: 'right',
                            cols: 3,
                            columns: [
                                { title: '名称:', key: 'name', config: { type: 'text' } },
                                { title: '批次:', key: 'batchNo', config: { type: 'text' } },
                                { title: '重量:', key: 'weight', config: { type: 'number' } }
                            ],
                            rules: {}
                        },
                        records: {
                            columns: [
                                { title: '管号', align: 'center', key: 'pipeNo', config: { type: 'text' } },
                                { title: '温度 <br/>（摄氏）',
                                  align: 'center',
                                  children: [
                                      { title: '一带', align: 'center', key: 'temperature1', config: { type: 'text' } },
                                      { title: '二带', align: 'center', key: 'temperature2', config: { type: 'text' } },
                                      { title: '三带', align: 'center', key: 'temperature3', config: { type: 'text' } },
                                      { title: '四带', align: 'center', key: 'temperature4', config: { type: 'text' } },
                                      { title: '五带', align: 'center', key: 'temperature5', config: { type: 'text' } }
                                ] },
                                { title: '时间', align: 'center', key: 'time', config: { type: 'time' } },
                                { title: '装舟量<br/>(kg/舟)', align: 'center', key: 'weight', config: { type: 'number' } },
                                { title: '推速<br/>(分/舟)', align: 'center', key: 'speed', config: { type: 'number' } },
                                { title: '氢流量<br/>(m3/h)', align: 'center', key: 'HWeight', config: { type: 'number' } }
                            ]
                        },
                        comments: {
                            labelWidth: 0,
                            labelPosition: 'right',
                            cols: 1,
                            columns: [
                                { title: '', key: 'name', config: { type: 'textarea' } }
                            ],
                            rules: {}
                        }
                    }
                }
            }
        },
        props: {
            data: {
                default: () => {
                    return {
                        FurnaceNo: '',
                        date: null,
                        shift: '',
                        formNo: 'HM-AH038-A',
                        feed: {
                            name: '',
                            batchNo: '',
                            weight: 0
                        },
                        product: {
                            name: '',
                            batchNo: '',
                            weight: 0
                        },
                        records: [
                            {
                                pipeNo: 'abc',
                                temperature1: '',
                                temperature2: '',
                                temperature3: '',
                                temperature4: '',
                                temperature5: '',
                                time: '',
                                weight: 0,
                                speed: 0,
                                HWeight: 0
                            }
                        ],
                        comments: ''
                    }
                }
            }
        },
        computed: {
            lang () {
                return {
                    'zh-CN': {
                        title: '测试页面'
                    },
                    'en-US': {
                        title: 'test'
                    }
                }[this.G_Locale]
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>
